﻿using System.Collections.Generic;

namespace RoomyDungeonGenerator
{
	/// <summary>Represents a tile-based map with a 2-dimensional grid of tiles, as well as additional information about the rooms on the map.</summary>
	public class Map
	{
		/// <summary>The grid containing all the tiles of the map</summary>
		public Tile[,] Tiles { get; private set; }
		/// <summary>The collection of all the rooms on the map</summary>
		public List<Room> Rooms { get; private set; }

		/// <summary>
		/// Initializes a new map.
		/// </summary>
		/// <param name="tiles">The grid containing all the tiles of the map</param>
		/// <param name="rooms">The collection of all the rooms on the map</param>
		public Map(Tile[,] tiles, List<Room> rooms)
		{
			Tiles = tiles;
			Rooms = rooms;
		}
	}
}
